export default {
  register(G6) {
    G6.registerNode('end', {
      getAnchorPoints() {
        return [
          [1, 0.5],
          [0, 0.5],
        ];
      },
      drawShape(item, group) {
        const html = `<div class="end-node"/>`;
        return group.addShape('dom', {
          attrs: {
            width: 50,
            height: 50,
            html
          }
        });
      },
    }, 'single-node');
  }
};